Benchmark share indices ended lower on profit taking after they touched record highs in the previous session.